﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RequestTypeTableMaint.aspx.cs" Inherits="yellig.Pages.Request.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Applications
    </h2>
    <p>
        Request !t - Request Type Table
        <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
            <Items>
                <asp:MenuItem NavigateUrl="~/Pages/Request/RequestTableMaint.aspx" Text="Request"/>
                <asp:MenuItem NavigateUrl="~/Pages/Request/RequestTypeTableMaint.aspx" Text="Request Type"/>
                <asp:MenuItem NavigateUrl="~/Pages/Request/RequestOwnerTableMaint.aspx" Text="Request Owner"/>
             </Items>
        </asp:Menu>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:yellig_db_local %>" 
        SelectCommand="SELECT * FROM [app_RequestType]"></asp:SqlDataSource>
    </p>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" 
                ReadOnly="True" SortExpression="Id" />
            <asp:BoundField DataField="RequestType" HeaderText="RequestType" 
                SortExpression="RequestType" />
            <asp:CommandField ShowEditButton="True" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
    <p>
    <form name="AddRequestType" method="Post" action="addRequestType.asp">
        <table>
            <tr><td>Add a New Request Type</td></tr>
            <tr><td><input type="text" name="RequestType" size="50"></td></tr>
        </table>
    <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
</asp:Content>
